<div id="wrapper">
    <div id="page-wrapper">
        <div class="panel panel-primary">
            <div class="panel-heading"><h5 class="panel-title"></h5></div>
            <div class="panel-body">
                <table class="table table-bordered ">
                    <thead>
                    <th>ID</th>
                    <th>分类</th>
                    <th>圈子ID</th>
                    <th>标题</th>
                    <th>内容</th>
                    <th>审核状态</th>
                    <th>操作</th>
                    </thead>
                    <tbody>
                    {%notempty name="data"%}
                    <tr>
                        {%volist name="data->all()" id="vo"%}
                        <td>{%$vo.id%}</td>
                        <td>{%$vo.flag%}</td>
                        <td>{%$vo.cir_id%}</td>
                        <td>{%$vo.title%}</td>
                        <td>{%$vo.content%}</td>
                        <td>{%$vo.approve_status%}</td>
                        <td style="width: 128px;">
                            <button class="btn btn-danger btn-sm del_note">删除</button>
                            <button class="btn btn-danger btn-sm edit_category">分类</button>
                        </td>
                    </tr>
                    {%/volist%}
                    </tbody>
                </table>
                <div class="pull-right">
                    {%$data->render()%}
                </div>
                {%/notempty%}
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="editcategoryModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">编辑分类</h4>
            </div>
            <div class="modal-body">
                <form id="addForm" class="form-horizontal">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">分类</label>

                        <div class="col-sm-10">
                            <label class="checkbox-inline">
                                <input type="checkbox" name="type" value="0"> 最新
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="type" value="1"> 精选
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="type" value="2"> 最热
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="type" value="4"> 原创
                            </label>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">关闭
                </button>
                <button id="edit_confirm" type="button" class="btn btn-primary">提交</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">确认删除</h4>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
                <button id="delete_confirm" type="button" class="btn btn-danger">确认</button>
            </div>
        </div>
    </div>
</div>
<script src="/static/home/widget/circle/notelist/editnote.js"></script>
